package mymvc.core;

//假设有一个uri是：    /fruit/index   /user/login

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

public class ControllerDefinition {
    private String requestMapping ;
    private Object controllerBean ;
    private Map<String, Method> methodMappingMap = new HashMap<>();

    public ControllerDefinition(){}

    public String getRequestMapping() {
        return requestMapping;
    }

    public void setRequestMapping(String requestMapping) {
        this.requestMapping = requestMapping;
    }

    public Object getControllerBean() {
        return controllerBean;
    }

    public void setControllerBean(Object controllerBean) {
        this.controllerBean = controllerBean;
    }

    public Map<String, Method> getMethodMappingMap() {
        return methodMappingMap;
    }

    public void setMethodMappingMap(Map<String, Method> methodMappingMap) {
        this.methodMappingMap = methodMappingMap;
    }
}
